/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bugcollect.ut;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 *
 * @author rremus
 */
public class UTLog4j {

    static Logger logger = Logger.getLogger(UTLog4j.class);

    public UTLog4j() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
        PropertyConfigurator.configure("/Users/rremus/NetBeansProjects/com.bugcollect/test/UTLog4j.config");
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    // TODO add test methods here.
    // The methods must be annotated with annotation @Test. For example:
    //
    @Test
    public void testSubmit2()
    {
        logger.info("something is rotten in Denmark");
        try
        {
            throw new Exception("Thrown");
        }
        catch(Exception e)
        {
            logger.error("Trying to throw a throne.", e);
        }
    }

}